﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/Shared.master" AutoEventWireup="true"
    CodeFile="Login.aspx.cs" Inherits="Shared_Login" %>

<asp:Content ID="C1" ContentPlaceHolderID="head" runat="Server">
    <link href="css/login.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="C2" ContentPlaceHolderID="CPH1" runat="Server">
    <telerik:RadAjaxManagerProxy runat="server" ID="proxy">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="b1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="errWin1" />
                    <telerik:AjaxUpdatedControl ControlID="loginPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td align="center" valign="middle">
                <div style="height: 572px;" class="bj">
                    <table width="1002" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                            <td width="540" height="572" align="left" valign="top" style="padding-top: 77px;">
                                <img src="img/login/1_19.jpg" width="540" height="348" />
                            </td>
                            <td width="25" valign="top" class="bj">
                                <img src="img/login/1_20.jpg" width="25" height="572" />
                            </td>
                            <td width="437" align="left" valign="top" style="padding-top: 185px;">
                                <asp:Panel ID="loginPanel" runat="server" style="width:300px;">
                                    <div>
                                        <img src="img/login/1_21.jpg" width="300" height="36" />
                                    </div>
                                    <table width="235" border="0" align="center" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td width="51" height="30">
                                                用户名：
                                            </td>
                                            <td colspan="2">
                                                <telerik:RadTextBox ID="t1" runat="server" MaxLength="20" Width="160" EmptyMessage="输入用户名" />
                                                <asp:RequiredFieldValidator runat="server" ID="r1" ControlToValidate="t1" ErrorMessage="请输入用户名！" Display="None" ValidationGroup="g1" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="30">
                                                密　码：
                                            </td>
                                            <td colspan="2">
                                                <telerik:RadTextBox ID="t2" runat="server" MaxLength="20" TextMode="Password" Width="160" />
                                                <asp:RequiredFieldValidator runat="server" ID="r2" ControlToValidate="t2" ErrorMessage="请输入密码！ " Display="None" ValidationGroup="g1" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="30">
                                                验证码：
                                            </td>
                                            <td width="92" valign="middle">
                                                <asp:TextBox ID="t3" runat="server" MaxLength="4" Width="83" />
                                            </td>
                                            <td width="92" valign="middle">
                                                <telerik:RadCaptcha ID="t4" runat="server" EnableRefreshImage="true" CaptchaLinkButtonText="" ValidatedTextBoxID="t3" IgnoreCase="true" ErrorMessage="验证码错误" Display="None" ValidationGroup="g1">
                                                <CaptchaImage Width="72" Height="31" TextChars="Numbers" RenderImageOnly="true" TextLength="4" TextColor="#5C2427" />
                                                </telerik:RadCaptcha>
                                            </td>
                                        </tr>
                                    </table>
                                    <div>
                                        <img src="img/login/1_23.gif" width="300" height="2" />
                                    </div>
                                    <table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
                                    <tr>
                                    <td colspan="2">
                                     <asp:CheckBox runat="server" ID="jz" Text="是否记住用户名密码" />
                                    </td>
                                    </tr>
                                        <tr>
                                            <td width="72">
                                                <input type="image" runat="server" style="width:72px;height:20px;" src="img/login/1_24.jpg" validationgroup="g1" onclick="return validate1();" onserverclick="Login_Click" id="b1" />
                                            </td>
                                            <td width="78" align="right">
                                           
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
    </table>
    <telerikEx:ErrorWindow ID="errWin1" runat="server" ValidationGroup="g1" />
    <telerik:RadCodeBlock runat="server">
    <script>
        function validate1() {
            if (!Page_ClientValidate()) {
                showErr();
                return false;
            }
            return true;
        }
        function showErr() {
            try { eval($('#<%=t4.ClientID %> a').attr('href')) } catch (e) { }
            <%=errWin1.ScriptForShow %>
        }
        if (top.location != self.location) top.location = self.location;
        Sys.Application.add_load(function () { $('#<%=t4.ClientID %> a').append($('#<%=t4.ClientID %> img').css('height', '24px')); });
    </script>
    </telerik:RadCodeBlock>
</asp:Content>